package StudentCourse;

public class SelectSystem {
    public static void main(String[] args) {
        Teacher teacher = new Teacher("123456", "张三", "男", "语文");
        Student student = new Student("987654", "李四", "男", "语文");
        Courses course = new Courses("112233", "语文", "主楼2501", "周一上午");

        System.out.println("教师信息：");
        System.out.println("教师编号：" + teacher.getId());
        System.out.println("教师姓名：" + teacher.getName());
        System.out.println("教师性别：" + teacher.getSex());
        System.out.println("所授课程：" + teacher.getCourseTaught());

        System.out.println();
        System.out.println("学生信息：");
        System.out.println("学生编号：" + student.getId());
        System.out.println("学生姓名：" + student.getName());
        System.out.println("学生性别：" + student.getSex());
        System.out.println("所选课程：" + student.getCourseSelect());
        System.out.println();

        System.out.println("课程信息：");
        System.out.println("课程编号：" + course.getId());
        System.out.println("课程名称：" + course.getname());
        System.out.println("上课地点：" + course.getAddress());
        System.out.println("上课时间：" + course.getTime());

        System.out.println();

        // 调用各自的打印课表方法
        teacher.printSchedule();
        student.printSchedule();
    }
}
